From cbf197aa0d9bd7affb10532e10fff4006b72912c Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Tue, 5 Sep 2006 14:17:49 +0100 Subject: [PATCH] The attached patch prevents a domain with an attached vTPM from doing local migration since this does not seem to work correctly (see tests in xm test suite). If no vTPM has been attached, the local migration proceeds as usual. Signed-off-by: Stefan Berger --- tools/examples/vtpm-common.sh | 5 +++++ tools/examples/vtpm-impl | 3 +++ 2 files changed, 8 insertions(+) diff --git a/tools/examples/vtpm-common.sh b/tools/examples/vtpm-common.sh index 2e4c89dfdb..e5e8ddbbf5 100644 --- a/tools/examples/vtpm-common.sh +++ b/tools/examples/vtpm-common.sh @@ -48,6 +48,9 @@ else function vtpm_migrate() { echo "Error: vTPM migration accross machines not implemented." } + function vtpm_migrate_local() { + echo "Error: local vTPM migration not supported" + } function vtpm_migrate_recover() { true } @@ -353,6 +356,8 @@ function vtpm_migration_step() { local res=$(vtpm_isLocalAddress $1) if [ "$res" == "0" ]; then vtpm_migrate $1 $2 $3 + else + vtpm_migrate_local fi } diff --git a/tools/examples/vtpm-impl b/tools/examples/vtpm-impl index bd6288d636..e45c6a170f 100644 --- a/tools/examples/vtpm-impl +++ b/tools/examples/vtpm-impl @@ -184,3 +184,6 @@ function vtpm_migrate_recover() { echo "Error: Recovery not supported yet" } +function vtpm_migrate_local() { + echo "Error: local vTPM migration not supported" +} -- 2.30.2